package com.wanxi.coupon.api.vo;


import com.sun.istack.internal.NotNull;
import com.wanxi.coupon.api.entity.CouponEnterprise;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("管理员添加优惠券信息")
public class CouponAdminTDO  {
    @NotNull
    @ApiModelProperty(value = "发放总量",example = "1000")
    private Integer quota; //发放总量
    @ApiModelProperty(value = "面额",example = "10")
    private BigDecimal couponMoney; //面额
    @ApiModelProperty(value = "满减额度100，满100减xxx",example = "1000")
    private BigDecimal fullReduction; //满减
    @ApiModelProperty(value = "折扣：0.95 ,打九五折")
    private BigDecimal discount; //折扣
    @NotNull
    @ApiModelProperty(value = "优惠券类型",example = "满减")
    private Integer type; //类型
    @NotNull
    @ApiModelProperty(value = "优惠券名称",example = "新人券")
    private String couponName;
    @ApiModelProperty(value = "描述",example = "新人券")
    private String remark; //描述
    @NotNull
    @ApiModelProperty(value = "生效时间",required = true,example = "2022-1-14")
    private String startTime; //生效时间
    @NotNull
    @ApiModelProperty(value = "失效时间",required = true,example = "2022-1-14")
    private String endTime;  //失效时间
    @NotNull
    @ApiModelProperty(value = "管理员id",example = "1",required = true)
    private Long adminId;
    @NotNull
    @ApiModelProperty(value = "适用范围",required = true)
    private List<CouponEnterprise> enterpriseRange; //适用范围
    @ApiModelProperty(value = "过期")
    private Long pastTime;
}
